for i in range(1900,2901):
    if i %4==0 and i %100 !=0:
        print(i)
